import numpy as np
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
matplotlib.use("Qt5Agg")
# data=pd.Series(np.random.randn(1000),index=np.arange(1000))
# data=data.cumsum()
# data.plot()
# plt.show()
data=pd.DataFrame(np.random.randn(1000,4),
                  index=np.arange(1000),
                  columns=list("ABCD"))
data=data.cumsum()
print(data.head())
ax1=data.plot.scatter(x="A",y="B",color="DarkBlue",label="Class 1")
ax2=data.plot.scatter(x="A",y="C",color="DarkGreen",label="Class 2",ax=ax1)
plt.show()